Skip to content

Lottery-Gift Box Loop#1740

Open
ArthurKun21 wants to merge 18 commits intomasterfrom
loop-lottery-present-box
Open

Lottery-Gift Box Loop#1740
ArthurKun21 wants to merge 18 commits intomasterfrom
loop-lottery-present-box

Conversation

@ArthurKun21
Copy link
Copy Markdown
Collaborator

@ArthurKun21 ArthurKun21 commented Jan 2, 2024

  • added lottery-gift box loop until full of embers and present box
  • While the NA config was added, it can't be 100% tested.
    • TW was added and tested

@ArthurKun21
Copy link
Copy Markdown
Collaborator Author

output_video.mp4

@ArthurKun21 ArthurKun21 deleted the loop-lottery-present-box branch July 13, 2024 01:33
@ArthurKun21 ArthurKun21 restored the loop-lottery-present-box branch May 8, 2025 22:32
@ArthurKun21 ArthurKun21 reopened this May 8, 2025
@ArthurKun21 ArthurKun21 requested a review from Copilot May 8, 2025 22:46
@github-actions
Copy link
Copy Markdown

github-actions bot commented May 8, 2025

Build 210

Download the latest APK for testing here

Note

You need a GitHub account to download the APK.

This URL is valid as long as the artifact has not expired yet.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces the lottery-gift box loop functionality by adding new configuration options and exit flows to support looping back to the lottery after processing the gift box. Key changes include:

  • Addition of new preferences (loopIntoLotteryAfterPresentBox, isPresentBoxFull, lottoSpin) and corresponding UI elements.
  • Updates to exit reasons and control flow in AutoLottery.kt and AutoGiftBox.kt to manage the looping behavior.
  • Adjustments in region usage and UI responses across various modules to support the new logic.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/src/main/java/io/github/fate_grand_automata/scripts/prefs/IPreferences.kt Added new preference properties for lottery loop and gift box state.
scripts/src/main/java/io/github/fate_grand_automata/scripts/locations/Locations.kt Replaced ordealCallOutOfPodsRegion with closeLowerMiddleScreenRegion using a when() construct.
scripts/src/main/java/io/github/fate_grand_automata/scripts/entrypoints/AutoLottery.kt Modified exit reasons and control flow in presentBoxFull() and spin() to support gambling loop logic.
scripts/src/main/java/io/github/fate_grand_automata/scripts/entrypoints/AutoGiftBox.kt Updated handling to return to lottery and throw appropriate exit exceptions.
app/src/main/res/values/localized.xml Added new string resources for the experimental lottery loop feature.
Remaining files Updated UI and configuration handling to integrate the new lottery loop and gift box features.

ArthurKun21 and others added 2 commits May 9, 2025 06:50
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants